<?php
/*
Template Name: estate
*/
?>
<?php get_header(); ?>
<!--主屏-->
<div class="page-w main-banner mb20 swiper-container">
  <div class="swiper-wrapper">
       <?php $cat=get_category_by_slug('estate-banner');?>
       <?php $posts = get_posts( "category__in=".$cat->term_id."&numberposts=5&orderby=post_title&order=ASC" ); ?>
       <?php if( $posts ) : ?>
       <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
           <div class="swiper-slide"><a><img src="<?php echo get_first_image($post); ?>" alt="" /></a></div>
       <?php endforeach; ?>
       <?php endif; ?>
  </div>
  <div class="swiper-button-next"></div>
  <div class="swiper-button-prev"></div>
</div>
<!---->
<div class="main-con mb20">
  <div class="main-title"><strong>金太阳地产</strong></div>
  <p class="lh30">金太阳地产，企业在周转提升规模辐射下的第一个板块，自2008年起，持续实现稳健、有质量的增长，形成阳光城系列中高层、小高层住宅，以及高档别墅小区、写字楼、商业综合体等地产项目，为所在城市全龄客群筑建一体化、舒适、自然的人居生活,下辖开发的金太阳鹭港别墅群落总建筑面积逾15万平方米，拥有良好的自然生态环境，独享近4万平米的天然水域。金太阳鹭港的整体规划，以地中海、南加州建筑风格为主，充分利用了自身的资源优势，以达到建筑与自然的和谐统一。注重私家庭院的设计，在园林的建造上遵循自然法则，力求做到景观的均好性，真正使建筑融入自然。鹭港项目是金太阳集团继13亿巨资打造金太阳装饰城后又一恢弘力作。</p>
</div>
<div class="main-con mb20">
  <div class="main-title"><strong>地产</strong></div>
  <div class="main-con pic-list estate-pic mb20">
    <ul class="clearfix">
       <?php $cat=get_category_by_slug('estate-projects');?>
       <?php $posts = get_posts( "category__in=".$cat->term_id."&numberposts=5&orderby=post_title&order=ASC" ); ?>
       <?php if( $posts ) : ?>
       <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
       <li><a href="<?php the_permalink();?>" href1="estateSub.html"><img src="<?php echo get_first_image($post); ?>" alt=""/>
               <div class="more">
                 <p ><?php the_title(); ?><i><?php the_time('Y-m-d'); ?></i></p>
               </div>
               </a>
       </li>
       <?php endforeach; ?>
       <?php endif; ?>
      <li><a href="estateSub.html"><img src="img/estate-pic.jpg" alt=""/>
        <div class="more">
          <p >镇江项目<i>2017-5-20</i></p>
        </div>
        </a>
      </li>
      <li><a href="estateSub.html"><img src="img/estate-pic.jpg" alt=""/>
        <div class="more">
          <p>镇江项目<i>2017-5-20</i></p>
        </div>
        </a></li>
      <li><a href="estateSub.html"><img src="img/estate-pic.jpg" alt=""/>
        <div class="more">
          <p>镇江项目<i>2017-5-20</i></p>
        </div>
        </a></li>
		<li><a href="estateSub.html"><img src="img/estate-pic.jpg" alt=""/>
        <div class="more">
          <p>镇江项目<i>2017-5-20</i></p>
        </div>
        </a></li>
      <li><a href="estateSub.html"><img src="img/estate-pic.jpg" alt=""/>
        <div class="more">
          <p>镇江项目<i>2017-5-20</i></p>
        </div>
        </a></li>
      <li><a href="estateSub.html"><img src="img/estate-pic.jpg" alt=""/>
        <div class="more">
          <p>镇江项目<i>2017-5-20</i></p>
        </div>
        </a></li>
    </ul>
	  <a class="btn btn-y" href="">查看更多></a>
  </div>
</div>
<!--footer-->
<?php get_footer(); ?>
<script>
 var swiper = new Swiper('.main-banner', {
		autoplay:true,
		 loop: true,
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
		pagination: {
			el: '.swiper-pagination',
			clickable: true,
		},
    });
</script>
</body>
</html>
